Skip to content

Removed window reference in library to enable usage with web workers#9

Open
ratpik wants to merge 1 commit intovkiryukhin:masterfrom
ratpik:master
Open

Removed window reference in library to enable usage with web workers#9
ratpik wants to merge 1 commit intovkiryukhin:masterfrom
ratpik:master

Conversation

@ratpik
Copy link
Copy Markdown

@ratpik ratpik commented Oct 20, 2014

Just changing the way the library is globally available by removing window reference during initialization. My use case required me to offload some text processing to web workers which is a fairly common thing these days wherein large text is processed asynchronously. By removing the reference to window, this library can be used with web workers or any other context that breaks when the DOM is referenced.

@ratpik
Copy link
Copy Markdown
Author

ratpik commented Oct 20, 2014

This closes issue #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant